
import HttpClient from '../utils/request';

// 上传图片文件
export const uploadFile = (e: File) => {
    return HttpClient.request({
        url: '/platform/upload',
        method: "POST",
        data: {
            "image-file": e
        },
        headers: {
            "Content-type": "multipart/form-data"
        }
    });
}
// 上传视频
export const uploadVideo = (e: File) => {
    return HttpClient.request({
        url: '/platform/uploadVideo',
        method: "POST",
        data: {
            "video-file": e
        },
        headers: {
            "Content-type": "multipart/form-data"
        }
    });
}




